﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Core.Helper
{
    public class JsHelper
    {
        public static string ShowErrorMsg(string msg)
        {
            return $"<script>window.top.showErrorMsg('{msg}')</script>";
        }

        public static string ShowSuccessMsg(string msg)
        {
            return $"<script>window.top.showSuccessMsg('{msg}'); </script>";
        }

        public static string GetJsScript(string jsContent)
        {
            return $"<script>{jsContent};</script>";
        }


    }
}
